from dataclasses import dataclass
from typing import Union, Any, Optional


@dataclass
class BusinessError(Exception):
    errcode: Union[str, int]
    message: str
    details: Optional[Any] = None